﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BSE.Windows.Test
{
    public class Keshi
    {
        private string keshiID = "";
        private string keshiCode = "";
        private string keshiName = "";

        public string KeshiID
        {
            get { return keshiID; }
            set { keshiID = value; }
        }

        public string KeshiCode
        {
            get { return keshiCode; }
            set { keshiCode = value; }
        } 
        public string KeshiName
        {
            get { return keshiName; }
            set 
            {
                keshiName = value;
                PersonPYM = ChineseConvertor.Convert(keshiName);
            }
        }
        public string PersonPYM { get; set; }

        public Keshi Clone()
        {
            Keshi k = new Keshi();
            k.KeshiID = this.KeshiID;
            k.KeshiCode = this.KeshiCode;
            k.KeshiName = this.KeshiName;
            return k;
        }
    }
}
